<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <h1><%= title %></h1>
    <p>Welcome to <%= title %></p>
  <%  if(username){   %>
      <h2>欢迎你:  <%- username %> </h2>
      <button onclick="location.href='/logout'">注销登录</button>
      <button onclick="location.href='/list'">电影列表</button>
      <button onclick="location.href='/chat'">在线聊天</button>


  <%  }else{  %>
      <button onclick="location.href='/login'">点击登录</button>
      <button onclick="location.href='/register'">注册</button>
  <%   }   %>
  </body>
</html>
